<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<#include "/common/pagerForm.html">

<style>


.searchBar.workUnit ul.searchContent li label{
    width:120px;
}

.searchBar.workUnit ul.searchContent li select{
    float:left;
}


.searchBar.workUnit ul.searchContent li.query{
    width:100px;
    padding-left:15px;
}
</style>
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/workUnit/workUnitLookUp?lookupType=radio" onsubmit="return dwzSearch(this, 'dialog')">
    <div class="pageHeader">
        <div class="searchBar workUnit" >
            <ul class="searchContent">
                <li ><label  id="workUnitCode" ><@label key="workUnitCode.C,colon">作业单元编号：</@label></label> <input type="text" class="textInput" name="workUnitCode" value="${condition.workUnitCode!''}" /></li>
                <li ><label  id="workUnitText""><@label key="workUnitText.C,colon">作业单元描述：</@label></label> <input type="text" class="textInput" name="workUnitText" value="${condition.workUnitText!''}" /></li>
            </ul>
            <ul class="searchContent">
                <li ><label  id="workCenterCode""><@label key="workCenterCode.C,colon">工厂中心编号：</@label></label> <input type="text" class="textInput" name="workCenterCode" value="${condition.workCenterCode!''}" /></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <table class="table" width="100%" layoutH="168" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="100" orderField="workUnitCode"<#if (page.orderField?? && page.orderField == 'workUnitCode')>class="${page.orderDirection!''}"</#if>><@label key="workUnitCode.C">作业单元编号</@label></th>
                <th width="100" orderField="workUnitText"<#if (page.orderField?? && page.orderField == 'workUnitText')>class="${page.orderDirection!''}"</#if>><@label key="workUnitText.C">作业单元描述</@label></th>
                <th width="100" orderField="workCenterCode"<#if (page.orderField?? && page.orderField == 'workCenterCode')>class="${page.orderDirection!''}"</#if>><@label key="workCenterCode.C">工作中心编号</@label></th>
                <th width="80"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as workUnit>
            <tr target="workUnit_code" rel="${workUnit.workUnitCode!''}">
                <td>${workUnit.workUnitCode!''}</td>
                <td>${workUnit.workUnitText!''}</td>
                <td>${workUnit.workCenterCode!''}</td>
                <td><a class="btnSelect bringBack" value="{workUnitCode:'${workUnit.workUnitCode!''}', workUnitText:'<@json_escape>${workUnit.workUnitText!''}</@json_escape>'}" >选择</a></td>        
            </tr>
            </#list> <#else>
            <tr >
                <td colspan="6"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="6"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">
    
</div>